package patternComposite;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class Folder extends FSObject {
	List<FSObject> in = new ArrayList<FSObject>();
	Folder(File f){
		this.f=f;
		for(File p:f.listFiles()){
			if(p.isFile()){
				in.add(new MyFile(p));
			} else if(p.isDirectory()){
				in.add(new Folder(p));
			}
		}
	}

}
